package top.chenfu1201.jpa.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class JpaHello {

    @GetMapping("/ok")
    public Object hello() {
        System.out.println(this.getClass().getName());
        Map<String, String> map = new HashMap<>();
        map.put("msg","ok");
        return map;
    }

}
